//
//  RankTableViewCell.m
//  MusicPlayer
//
//  Created by dllo on 15/5/22.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//
#define Width [UIScreen mainScreen].bounds.size.width
#define Height [UIScreen mainScreen].bounds.size.height
#import "RankTableViewCell.h"

@implementation RankTableViewCell

- (void)dealloc
{
    [_numLabel1 release];
    [_numLabel2 release];
    [_numLabel3 release];
    [_numView1 release];
    [_numView2 release];
    [_numView3 release];
    [_titleLabel release];
    [_showView release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        
        self.showView = [[UIImageView alloc] initWithFrame:CGRectMake(10/375.0*Width, 10/667.0*Height, 110/375.0*Width,110/667.0*Height)];
        self.showView.clipsToBounds = YES;
        self.showView.layer.cornerRadius = Width / 375 * 15;
        [self.showView setBackgroundColor:[UIColor yellowColor]];
        [self.contentView addSubview:self.showView];
        [self.showView release];
        
        
        self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(135/375.0*Width, 10/667.0*Height, 200/375.0*Width, 40/667.0*Height)];
        _titleLabel.textColor = [UIColor whiteColor];
        [self addSubview:self.titleLabel];
        [_titleLabel release];
        
        self.numView1 = [[UIImageView alloc] initWithFrame:CGRectMake(135/375.0*Width, 50/667.0*Height, 15/375.0*Width, 15/667.0*Height)];

        [self.contentView addSubview:self.numView1];
        [_numView1 release];
        
        self.numView2 = [[UIImageView alloc] initWithFrame:CGRectMake(135/375.0*Width, 75/667.0*Height, 15/375.0*Width, 15/667.0*Height)];
       
        [self.contentView addSubview:self.numView2];
        [_numView2 release];
        
        self.numView3 = [[UIImageView alloc] initWithFrame:CGRectMake(135/375.0*Width, 100/667.0*Height, 15/375.0*Width, 15/667.0*Height)];
      
        [self.contentView addSubview:self.numView3];
        [_numView3 release];
        
        self.numLabel1 = [[UILabel alloc] initWithFrame:CGRectMake(155/375.0*Width,50/667.0*Height, 150/375.0*Width, 10/667.0*Height)];
        self.numLabel1.font =[UIFont systemFontOfSize:12];
        _numLabel1.textColor = [UIColor whiteColor];
        
        [self.contentView addSubview:self.numLabel1];
        [_numLabel1 release];
        
        self.numLabel2 = [[UILabel alloc] initWithFrame:CGRectMake(155/375.0*Width, 75/667.0*Height, 150/375.0*Width, 10/667.0*Height)];
        self.numLabel2.font =[UIFont systemFontOfSize:12];
        _numLabel2.textColor = [UIColor whiteColor];
        
        [self.contentView addSubview:self.numLabel2];
        [_numLabel2 release];

        
        self.numLabel3 = [[UILabel alloc] initWithFrame:CGRectMake(155/375.0*Width, 100/667.0*Height, 150/375.0*Width, 10/667.0*Height)];
        self.numLabel3.font =[UIFont systemFontOfSize:12];
        _numLabel3.textColor = [UIColor whiteColor];
        
        [self.contentView addSubview:self.numLabel3];
        [_numLabel3 release];
    }
    return self;
}






- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
